package com.patterns.design.security.web.struts.sample1.form;

import org.owasp.esapi.Encoder;

import com.patterns.design.security.web.struts.common.BaseForm;

/**
 * 
 *
 */
public class SampleForm extends BaseForm{
	
	private String htmlWithJSInScript="";
	private String htmlWithJSInDiv="";
	
	public String getHtmlWithJSInScript() {
		return htmlWithJSInScript;
	}
	public void setHtmlWithJSInScript(String htmlWithJSInScript) {
		this.htmlWithJSInScript = htmlWithJSInScript;
	}
	public String getHtmlWithJSInDiv() {
		return htmlWithJSInDiv;
	}
	public void setHtmlWithJSInDiv(String htmlWithJSInDiv) {
		this.htmlWithJSInDiv = htmlWithJSInDiv;
	}
	public void encode(Encoder encoder) {
		htmlWithJSInScript=encoder.encodeForHTML(htmlWithJSInScript);
		htmlWithJSInDiv=encoder.encodeForHTML(htmlWithJSInDiv);
	}

}
